package com.shun.upms.dto;

import com.shun.common.page.ShunPage;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

public class SysAdminUserQueryDto extends ShunPage implements Serializable {

    @ApiModelProperty("用户名字")
    @Length(min = 2, max = 12)
    private String sauName;

    @ApiModelProperty("用户账号")
    @Length(min = 4, max = 20)
    private String sauAccount;

    @ApiModelProperty("用户入职日期")
    @Pattern(regexp = "^\\d{4}-\\d{1,2}-\\d{1,2}", message = "不符合日期格式！")
    private String sauEntryDate;

    @ApiModelProperty("性别(字典) 0 女 1 男")
    private String sauSex;

    @ApiModelProperty("岗位ID")
    private String sauPostId;

    @ApiModelProperty("部门ID")
    private String sauDeptId;

    @ApiModelProperty("状态(字典) 0 正常 1 冻结")
    private String sauStatus;

    public String getSauName() {
        return sauName;
    }

    public void setSauName(String sauName) {
        this.sauName = sauName;
    }

    public String getSauAccount() {
        return sauAccount;
    }

    public void setSauAccount(String sauAccount) {
        this.sauAccount = sauAccount;
    }

    public String getSauEntryDate() {
        return sauEntryDate;
    }

    public void setSauEntryDate(String sauEntryDate) {
        this.sauEntryDate = sauEntryDate;
    }

    public String getSauSex() {
        return sauSex;
    }

    public void setSauSex(String sauSex) {
        this.sauSex = sauSex;
    }

    public String getSauPostId() {
        return sauPostId;
    }

    public void setSauPostId(String sauPostId) {
        this.sauPostId = sauPostId;
    }

    public String getSauDeptId() {
        return sauDeptId;
    }

    public void setSauDeptId(String sauDeptId) {
        this.sauDeptId = sauDeptId;
    }

    public String getSauStatus() {
        return sauStatus;
    }

    public void setSauStatus(String sauStatus) {
        this.sauStatus = sauStatus;
    }
}
